package utilities;

import java.util.Vector;

import org.jgroups.Address;

/**
 * Defines our communication protocol
 * @author M
 *
 */
public class ChatMessage {

	private MessageType messageType;
	private Address srcAddr, dstAddr;
	private Object data;
	private String userName;
	
	public ChatMessage(MessageType messageType, Address srcAddr,
			Address dstAddr, Object data, String uName) {
		super();
		this.messageType = messageType;
		this.srcAddr = srcAddr;
		this.dstAddr = dstAddr;
		this.data = data;
		this.userName = uName;
	}

	public ChatMessage(Vector<Address> vect) {
		// TODO Auto-generated constructor stub
	}

}
